window.TITTValues = new function() {

	this.PREFIX_CALLBACK = "callback";
	
	this.GET     = 0,
	this.POST    = 1,
	this.OPTIONS = 2;
	
	this.NUDER_IO_TIMEOUT = 30;
	
	this.HTTP_NEWLINE = "\r\n";
	this.HTTP_NEWLINE_LENGTH = 2;
		
	this.MULTIPART_SEPERATOR = "--";
	
	this.methodAsString = function(method) {
		if(method == this.GET)
			return "GET";
		if(method == this.POST)
			return "POST";
		return "OPTIONS";
	}
		
	this.getResponse = function(statusCode) {
		var v = "HTTP/1.1 ";
		if(statusCode == 200) 
			return v + "200 OK";
		if(statusCode == 307)
			return v + "307 Temporary Redirect";
		if(statusCode == 400)
			return v + "400 Bad Request";
		if(statusCode == 409)
			return v + "409 Conflict";
		if(statusCode == 404)
			return v + "404 Not Found";
		if(statusCode == 411)
			return v + "411 Length Required";
		if(statusCode == 418)
			return v + "418 I'm a teapot";
		if(statusCode == 423)
			return v + "423 Locked";
		if(statusCode == 503)
			return v + "503 Service Unavailable";
		return v + "200 OK";
	}
}